projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
187762d
)
Avoid a crash
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Dec 2010 19:08:03 +0000
(14:08 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 22 Dec 2010 19:08:03 +0000
(14:08 -0500)
pointed out in bug 533745
gdk/gdkdnd.c
patch
|
blob
|
history
diff --git
a/gdk/gdkdnd.c
b/gdk/gdkdnd.c
index 542f88f154f9e61692d0fe23c017bdc56b495433..bb2e6a854e80f625023fa5fd178da6ada1d01828 100644
(file)
--- a/
gdk/gdkdnd.c
+++ b/
gdk/gdkdnd.c
@@
-451,6
+451,7
@@
GdkAtom
gdk_drag_get_selection (GdkDragContext *context)
{
g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), GDK_NONE);
+ g_return_val_if_fail (context->source_window != NULL, GDK_NONE);
return GDK_DRAG_CONTEXT_GET_CLASS (context)->get_selection (context);
}